/**
 * Created by Administrator on 2016/7/15.
 */
"use strict";
swan_pc
    .directive("expander",function(){
        return{
            restrict:"AE",
            templateUrl:"scripts/services/directive/expander/expander.html",
            replace:true,
            transclude:true,
            scope:{
                item:"@"
            },
            link:function(scope,element,attrs){
                scope.showMe=false;
                scope.toggle=function(){
                    scope.showMe=!scope.showMe
                }
            }
        }
    })
